#!/usr/bin/env python
# encoding: utf-8
'''
@author: Excelsiorly
@license: (C) Copyright 2021, All Rights Reserved.
@contact: excelsiorly@qq.com
@file: ToplogicSort.py
@time: 2021/12/21 13:48
@desc:
'''
class ArcNode:
    def __init__(self, adjvex) -> None:
        self.adjvex = adjvex
        self.next_arc = None

class VNode:
    def __init__(self, data) -> None:
        self.data = data
        self.first_arc = None

class Graph:
    def __init__(self, vex_num, arc_num) -> None:
        self.vertices = None
        self.vex_num = vex_num
        self.arc_num = arc_num